var t = getApp();

Component({
    options: {
        styleIsolation: "shared"
    },
    properties: {
        drawShow: {
            type: Boolean,
            value: !1
        },
        type: {
            type: null,
            value: 1
        },
        newBlindBoxData: {
            type: null,
            value: {}
        }
    },
    lifetimes: {
        attached: function() {
            this.getData();
        }
    },
    data: {
        allDataList: []
    },
    methods: {
        getData: function() {
            var a = this;
            t._postNetWork({
                url: t.getNetAddresss(this.data.newBlindBoxData.api),
                data: {
                    order_id: this.data.newBlindBoxData.order_id
                },
                success: function(t) {
                    var e = t.data;
                    e.result ? a.setData({
                        allDataList: e.data.data ? e.data.data : e.data.list
                    }) : wx.showToast({
                        icon: "none",
                        title: e.msg,
                        duration: 1500
                    });
                },
                fail: function(t) {
                    console.log(t);
                }
            });
        },
        close: function() {
            this.triggerEvent("drawGoodsClose", !1);
        },
        goOrderdetail: function(t) {
            wx.navigateTo({
                url: "/packageA/member/orderdetail/orderdetail?order_id=" + t.currentTarget.dataset.info.id
            });
        }
    }
});